package com.edeweiss.community.services.servicesImp;

import com.edeweiss.community.dao.StudentDao;
import com.edeweiss.community.dao.daoImp.StudentDaoImp;
import com.edeweiss.community.domain.*;
import com.edeweiss.community.services.StudentService;
import com.edeweiss.community.web.utils.UUIDUtils;

import java.util.List;

public class StudentServiceImp implements StudentService {
    StudentDao studentDao=new StudentDaoImp();


    @Override
    public Student loginStudent(Student NewStudent) {
        return studentDao.loginStudent(NewStudent);
    }


    @Override
    public int ReginStudent(Student student) {
        return studentDao.ReginStudent(student);
    }

    @Override
    public int ChangePassword(Student student, String newPassword) {
        return studentDao.ChangePassword(student,newPassword);
    }

    @Override
    public List<Faulty> findFaultyId() {
        return studentDao.findFaultyId();
    }

    @Override
    public List<Community> findJoinCommunity(String sid) {
        return studentDao.findJoinCommunity(sid);
    }

    @Override
    public int applyJoinCommunity(CommunityApply apply) {
        return studentDao.applyJoinCommunity(apply);
    }

    @Override
    public int applyHof(Hof hof) {
        return studentDao.applyHof(hof);
    }

    @Override
    public List<Message> findMessage(String sid) {
        return studentDao.findMessage(sid);
    }
}
